- SSH to the virtual guest.
- Confirm that the network scripts are not configured to rely on a hard-coded MAC address. If they are, manually change the scripts to match your virtual server’s NIC.
- Review /boot/grub/device.map to confirm that the configuration matches your virtual hardware. Pay special attention if you are restoring from an IDE or PATA-based host to a SCSI-based virtual server, because the naming conventions between the hardware types are different. For example, if you are restoring from a PATA-based physical server to a virtual server, you will need to change the mapping to read sda instead of hda.
- Review /etc/fstab and make any necessary adjustments to the file system table to ensure that the file accurately reflects the proper block device location of each file system. Again, be sure to account for differences between PATA and SCSI, as appropriate.
-
Comment out all unnecessary hardware kernel modules that were imported from your physical host by editing /etc/modprobe.conf. At a minimum, the pcnet32 and mpt* entries must be added to ensure system functionality post-recovery. Once this is complete, run the following command to merge the virtual and physical copies of the file.
cat /etc/modprobe.conf.pre-migration >> /etc/modprobe.conf
-
Run the mkinitrd command to rebuild the kernel's ramdisk to support the changes in hardware. For example, if your physical host used the 2.6.18-128.El kernel, the command would be mkinitrd /boot/initrd.2.6.18-128.EL.img 2.6.18-128.EL.
mkinitrd <image file> <kernel directory>
- Reinstall the grub bootloader using the command grub-install --recheck <boot device id>. The boot device ID is typically the device that contains the file system containing /boot, minus the partition ID. For example, if /boot is mounted as /dev/sdb2, the boot device ID is /dev/sdb
-
Reboot the virtual server into single user mode and watch for any file system or other error messages. Kudzu may or may not launch. If it does not, launch it manually to configure any new hardware.
Kudzu is not supplied with Red Hat Enterprise Linux 6.0
Kudzu will prompt for the removal of any hardware devices that no longer exist in the virtual server. Do not remove these items if you plan to return the server to its original hardware.
- Reboot the server into full user mode.